<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	>

<h:head>
<title>  #{msg['nomPageValiderParticipation']} </title>
<link rel="stylesheet" type="text/css" href="${facesContext.externalContext.requestContextPath}/resource/css/Style.css" /> 
</h:head>

<h:body>
<ui:include src="/entete.xhtml" />
   	
  <p:dataTable var="per" value="#{beanParticipation.participationInvalide}">
    <p:column headerText="Acteur">
        <h:outputText value="#{per.personne.nom} #{per.personne.prenom}" />
    </p:column>
 
    <p:column headerText="Film ">
        <h:outputText value="#{per.film.titre}" />
    </p:column>
 
     
    <p:column headerText="Role">
        <h:outputText value="#{per.role}" >
        </h:outputText>
    </p:column>
    
    <p:column headerText="Action">
    <h:form>
         <p:commandButton value="valider" action="#{beanParticipation.validerParticipation}" ajax="false" >
         	<f:setPropertyActionListener value="#{per}" target="#{beanParticipation.participe}" />
         </p:commandButton>
		 <p:commandButton value="supprimer" action="#{beanParticipation.supprimerParticipation}" ajax="false" >
		 	<f:setPropertyActionListener value="#{per}" target="#{beanParticipation.participe}" />
		 </p:commandButton>
	</h:form>
    </p:column>
    
</p:dataTable>


<ui:include src="/Pied.xhtml"/>
</h:body>

</html>